/**
 * 示例相关API接口
 */

import { request } from '@/utils/request';

// 获取欢迎信息
export async function hello(): Promise<string[]> {
  return request.get('/api/demo/hello');
}

// 回显消息
export async function echo(message: string): Promise<string> {
  return request.post('/api/demo/echo', null, { params: { message } });
} 